import request from '@/utils/request'

export default {
    getRegularListPage(regularQuery) {
        return request({
            url: `/fixedDeposit/findByAny`,
            method: 'post',
            data:regularQuery

        })
    },
    getQueryRegularListPage(regularQuery) {
        return request({
            url: `/fixedDeposit/findByAnyQuery`,
            method: 'post',
            data: regularQuery
        })
    },
    removeRegular(checkList) {
        return request({
            url: `/fixedDeposit/remove`,
            method: 'post',
            data: checkList
        })
    },
    //上架产品
    recoverRegular(checkList) {
        return request({
            url: `/fixedDeposit/recover`,
            method: 'post',
            data: checkList
        })
    },
    //添加定期
    addRegular(regular) {
        return request({
            url: `/fixedDeposit/add`,
            method: 'put',
            data: regular
        })
    },
    //根据id查询定期数据
    getRegular(id, status) {
        return request({
            url: `/fixedDeposit/findOne/${id}/${status}`,
            method: 'get'
        })
    },
    //修改定期
    updateRegular(regular) {
        return request({
            url: `/fixedDeposit/update`,
            method: 'put',
            data: regular
        })
    },
    //分页显示轮播图回收站列表
    recycleSlideShowPage(page, limit, slideShowQuery) {
        return request({
            url: `/slideShow/selectRecycleAll/${page}/${limit}`,
            method: 'post',
            data: slideShowQuery
        })
    },

}